package com.fzrskj.cloud.free.core.enums;

/**
 * PromotionEnum.
 *
 * @author zj.
 *         Created on 2019/1/15 0015.
 */
public enum PromotionEnum {
    /**
     * 无优惠
     */
    NONE(0),
    /**
     * 赠送月
     */
    MONTH(1),
    /**
     * 折扣
     */
    DISCOUNT(2),
    /**
     * 赠送天
     */
    DAY(3);

    /**
     * value.
     */
    private Integer value;

    /**
     * construct.
     * @param value value.
     */
    PromotionEnum(Integer value) {
        this.value = value;
    }

    /**
     * 获取值.
     * @return value.
     */
    public Integer getValue() {
        return this.value;
    }

    /**
     * equals.
     * @param comparisonValue comparison value.
     * @return Boolean.
     */
    public Boolean equals(Integer comparisonValue) {
        return this.value.equals(comparisonValue);
    }
}
